<?php /* Smarty version Smarty-3.0.7, created on 2011-09-11 17:49:38
         compiled from "D:\AonzWebDev\InnanaWorkspace\InnanaWebProject/themes/innana/webboard-topic.tpl" */ ?>
<?php /*%%SmartyHeaderCode:169554e6c924225ddb7-18697295%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a1e57f2d265842c45aa3288800cdd879848b0329' => 
    array (
      0 => 'D:\\AonzWebDev\\InnanaWorkspace\\InnanaWebProject/themes/innana/webboard-topic.tpl',
      1 => 1315736009,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '169554e6c924225ddb7-18697295',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_escape')) include 'D:\AonzWebDev\InnanaWorkspace\InnanaWebProject\tools\smarty\plugins\modifier.escape.php';
?><?php ob_start(); ?>
	<a href="webboard.php?board=0.1">
		<?php echo smartyTranslate(array('s'=>'Webboard'),$_smarty_tpl);?>

	</a>
	<span class="navigation-pipe"><?php echo $_smarty_tpl->getVariable('navigationPipe')->value;?>
</span>
	<?php echo smarty_modifier_truncate(smarty_modifier_escape($_smarty_tpl->getVariable('topic')->value[0]['topic_title'],'htmlall','UTF-8'),30);?>

<?php  Smarty::$_smarty_vars['capture']['path']=ob_get_clean();?>
<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>

<div id="my-webboard">
	<h4></h4>
	<div class="block_content_wrapper">
		<table class="block_content" cellpadding="5" cellspacing="0" border="0">
			<tr class="topic_title">
				<td colspan="2"><?php echo wordwrap($_smarty_tpl->getVariable('topic')->value[0]['topic_title'],50,"<br />",false);?>
</td>
			</tr>	
			<?php if ($_smarty_tpl->getVariable('selected_page')->value==1){?>
			<tr class="posted_content">
				<td class="post_info">
					<p class="author"><b>Author: </b><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('topic')->value[0]['author'],'htmlall','UTF-8');?>
(<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('topic')->value[0]['author_username'],'htmlall','UTF-8');?>
)<?php if ($_smarty_tpl->getVariable('topic')->value[0]['show_admin_icon']==true){?><img class="admin_icon" src='<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
admin_icon.png' /><?php }?></p>
					<p class="posted"><b>Posted: </b><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('topic')->value[0]['post_time'],'htmlall','UTF-8');?>
</p>
				</td>
				<td class="topic_content_and_reply">
					<?php echo wordwrap($_smarty_tpl->getVariable('topic')->value[0]['topic_content'],200,"<br />",false);?>

				</td>							
			</tr>				
			<?php }?>
			<?php  $_smarty_tpl->tpl_vars['reply'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('replies')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['reply']->key => $_smarty_tpl->tpl_vars['reply']->value){
?>
			<tr class="posted_content">
				<td class="post_info" style="clear: left">
					<p class="author"><b>Author: </b><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['reply']->value['author'],'htmlall','UTF-8');?>
(<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['reply']->value['author_username'],'htmlall','UTF-8');?>
)<?php if ($_smarty_tpl->tpl_vars['reply']->value['show_admin_icon']==true){?><img class="admin_icon" src='<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
admin_icon.png' /><?php }?></p>
					<p class="posted"><b>Posted: </b><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['reply']->value['post_time'],'htmlall','UTF-8');?>
</p>
				</td>		
				<td class="topic_content_and_reply">
					<?php if ($_smarty_tpl->getVariable('adminUser')->value){?>
						<?php $_smarty_tpl->tpl_vars['pin_action'] = new Smarty_variable($_smarty_tpl->tpl_vars['reply']->value['pin'], null, null);?>
						<?php $_smarty_tpl->tpl_vars['topic_id'] = new Smarty_variable($_smarty_tpl->tpl_vars['reply']->value['topic_id'], null, null);?>
						<?php $_smarty_tpl->tpl_vars['type'] = new Smarty_variable('reply', null, null);?>
						<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./webboard-admin-panel.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
					<?php }?>	
					<?php echo wordwrap($_smarty_tpl->tpl_vars['reply']->value['topic_content'],100,"<br />",false);?>

				</td>				
			</tr>
			<?php }} ?>
		</table>
	</div>
	<div class="footer">
		<?php if (count($_smarty_tpl->getVariable('replies')->value)>0){?>
			<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./webboard-pagination.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
		<?php }?>
		<div class="new_topic">
			<a id="reply" href="webboard.php?action=post&topic=<?php echo $_smarty_tpl->getVariable('topic')->value[0]['topic_id'];?>
.1" title="Post Reply">POST REPLY</a>
		</div>
	</div>
</div>